﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DIS.Infrastructure.Entities.Enum
{
    public static class EnumMapping
    {
        public static string Mapping(this Gender gender)
        {
            switch (gender)
            {
                case Gender.Female:
                    return "女士";
                default:
                case Gender.Male:
                    return "先生";
            }
        }
        public static string Mapping(this UserRole userRole)
        {
            switch (userRole)
            { 
                case UserRole.Admin:
                    return "超级管理员";
                default:
                case UserRole.User:
                    return "普通用户";
                case UserRole.Leader:
                    return "领导";
            }
        }
 
    }
}
